package com.ltxtiyu.video.dao.ltx;

import com.ltxtiyu.video.entity.Tag;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TagDao {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Tag record);

    Tag selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Tag record);

    Tag findByName(String tag);

    List<Tag> findTagByVideoId(Integer videoId);
}